package com.yx.feign.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @Classname CarService
 * @Date 2021/07/19 20:36
 * @Author by yx
 * @Description TODO:
 */
@FeignClient(
        name = "car",
        path = "/carController"
)
public interface CarService {

    @RequestMapping("/getCarListByUidAndGid")
    Map<String, Object> getCarListByUidAndGid(@RequestParam("uid") Integer uid, @RequestParam("gidArray") List<String> gidArray);
    @RequestMapping("/getCarListByUid/{uid}")
    Map<String,Object> getCarListByUid(@PathVariable Integer uid);
}
